import request from '@/utils/request'

// 查询退货售后列表
export function listOrderrefund(query) {
  return request({
    url: '/business/orderrefund/list',
    method: 'get',
    params: query
  })
}

// 查询退货售后详细
export function getOrderrefund(id) {
  return request({
    url: '/business/orderrefund/' + id,
    method: 'get'
  })
}

// 新增退货售后
export function addOrderrefund(data) {
  return request({
    url: '/business/orderrefund',
    method: 'post',
    data: data
  })
}

// 修改退货售后
export function updateOrderrefund(data) {
  return request({
    url: '/business/orderrefund',
    method: 'put',
    data: data
  })
}

// 删除退货售后
export function delOrderrefund(id) {
  return request({
    url: '/business/orderrefund/' + id,
    method: 'delete'
  })
}

// checkXx
export function checkXx(data) {
  return request({
    url: '/business/orderrefund/checkXx',
    method: 'post',
    data: data
  })
}

